package org.springframework.beans.support;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * @author admin
 */
public interface MergedBeanDefinitionPostProcessor extends BeanPostProcessor {

    /**
     * 合并beanDefinition处理
     *
     * @param beanDefinition
     * @param beanName
     * @param beanType
     * @return
     */
    void postProcessMergedBeanDefinition(BeanDefinition beanDefinition, Class<?> beanType, String beanName);


    /**
     * 重设beanDefinition
     *
     * @param beanName
     * @return
     */
    default void resetBeanDefinition(String beanName) {
    }
}
